package com.lei.day1rikao.model;

import com.lei.day1rikao.LCallback;
import com.lei.day1rikao.contract.LoginContract;
import com.lzy.okgo.OkGo;
import com.lzy.okgo.callback.StringCallback;

import java.util.HashMap;

public class LoginModel implements LoginContract.Model {
    @Override
    public void login(HashMap<String, String> map, final StringCallback callback) {
        if (map!=null){
            OkGo.<String>get("http://www.qubaobei.com/ios/cf/dish_list.php?stage_id=1&limit=20&page=1").execute(callback);
        }
    }

    @Override
    public void destroy() {

    }
}
